﻿<div class="blade-static __bottom" ng-include="'$(Platform)/Scripts/common/templates/create.tpl.html'"></div>
<div class="blade-content">
    <div class="blade-inner">
        <div class="inner-block">
            <form class="form" name="formScope">
                <div class="form-group" ng-init="setForm(formScope)">
                    <label class="form-label">{{ 'platform.blades.new-account-wizard.labels.login' | translate }}</label>
                    <div class="form-input">
                        <input ng-model="blade.currentEntity.userName" type="email" placeholder="{{ 'platform.blades.new-account-wizard.placeholders.login' | translate }}" required focus-on="">
                    </div>
                </div>
                <div class="form-group">
                    <label class="form-label">{{ 'platform.blades.new-account-wizard.labels.password' | translate }}</label>
                    <div class="form-input">
                        <input ng-model="blade.currentEntity.password" required placeholder="{{ 'platform.blades.new-account-wizard.placeholders.password' | translate }}" type="password">
                    </div>
                </div>
                <div class="form-group">
                    <label class="form-label">{{ 'platform.blades.new-account-wizard.labels.repeat-password' | translate }}</label>
                    <div class="form-input">
                        <input ng-model="blade.currentEntity.newPassword2" required placeholder="{{ 'platform.blades.new-account-wizard.placeholders.repeat-password' | translate }}" type="password">
                    </div>
                </div>
            </form>
            <div class="sub-t">{{ 'platform.blades.new-account-wizard.labels.assign-roles' | translate }}</div>
            <div class="table-wrapper">
                <table class="table">
                    <tbody>
                        <tr class="table-item" ng-repeat="data in blade.currentEntities track by data.id" ng-class="{'__selected': data.id === selectedNodeId}">
                            <td class="table-col">
                                <label class="form-control __checkbox">
                                    <input type="checkbox" ng-model="data.$selected">
                                    <span class="check"></span>
                                </label>
                            </td>
                            <td class="table-col" ng-click='blade.selectNode(data)'>
                                <span class="table-t">{{data.name}}</span>
                                <span class="table-descr">{{data.description}}</span>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>